<?php

namespace app\common\validate;

use think\Validate;

class Userconfigadd extends Validate
{
    protected $rule = [
        'group' => 'require',
        'title' => 'require',
        'name'  => 'require|notIn:uid,id,create_time,jdata,cname,mobile,type,come_from,intention,status,province,city,area,address,remark',
        'type'  => 'require',
    ];

    protected $message = [
        'group.require' => '请选择配置分类',
        'title.require' => '配置标题不能为空',
        'name.require'  => '配置标识不能为空',
        'name.notIn'  => '配置标识为系统默认标识，禁止使用，请更改',
        'type.require'  => '请选择配置类型',
    ];
}
